package org.komarichin.beans;

import java.util.Date;

/**
 * Description publishing
 * User: Mykhaylo Komarichyn
 * Date: 17.03.2010
 * Time: 10:43:56
 */
public interface IPublishingEntry<PK> extends IGenericEntity<PK> {

    /**
     * @return publishing name
     */
    String getName();

    /**
     * @param name new publishing name
     */
    void setName(String name);

    /**
     * @return date publishing's updated
     */
    Date getCreate();

    /**
     * @param update new saveOrUpdate date publishing
     */
    void setCreate(Date update);

    /**
     * set publishing's date updated as current date
     */
    void setUpdate();

    /**
     * @return publishing content
     */
    String getContent();

    /**
     * @param content publishing news content
     */
    void setContent(String content);


    /**
     * @return publishing language by long value {@link ILanguage#getId()}
     */
    Long getLanguage();

    /**
     * @param lang publishing language by long value {@link ILanguage#getId()}
     */
    void setLanguage(Long lang);


}
